/*     */ package com.yss.sofa.cml.print;
/*     */ 
/*     */ import com.yss.sofa.cml.SerializableObject;
/*     */ import com.yss.sofa.cml.type.OrientationEnum;
/*     */ import java.util.ArrayList;
/*     */ import java.util.List;
/*     */ 
/*     */ public class PrintDocument
/*     */   implements SerializableObject
/*     */ {
/*     */   private static final long serialVersionUID = 1L;
/*     */   private List<PrintPage> pages;
/*     */   private int columnCount;
/*     */   protected String name;
/*     */   protected int paperWidth;
/*     */   protected int paperHeight;
/*     */   protected int printAreaWidth;
/*     */   protected int printAreaHeight;
/*     */   protected int topMargin;
/*     */   protected int leftMargin;
/*     */   protected int rightMargin;
/*     */   protected int bottomMargin;
/*     */   protected float scaleX;
/*     */   protected float scaleY;
/*     */   protected int pageX;
/*     */   protected int pageY;
/*     */   protected int printAreaX;
/*     */   protected int printAreaY;
/*     */   protected OrientationEnum orientation;
/*     */ 
/*     */   public PrintDocument(String name)
/*     */   {
/*  38 */     this.name = name;
/*     */   }
/*     */ 
/*     */   public String getName() {
/*  42 */     return this.name;
/*     */   }
/*     */ 
/*     */   public void setName(String name) {
/*  46 */     this.name = name;
/*     */   }
/*     */ 
/*     */   public int getTopMargin() {
/*  50 */     return this.topMargin;
/*     */   }
/*     */ 
/*     */   public void setTopMargin(int topMargin) {
/*  54 */     this.topMargin = topMargin;
/*     */   }
/*     */ 
/*     */   public int getLeftMargin() {
/*  58 */     return this.leftMargin;
/*     */   }
/*     */ 
/*     */   public void setLeftMargin(int leftMargin) {
/*  62 */     this.leftMargin = leftMargin;
/*     */   }
/*     */ 
/*     */   public int getRightMargin() {
/*  66 */     return this.rightMargin;
/*     */   }
/*     */ 
/*     */   public void setRightMargin(int rightMargin) {
/*  70 */     this.rightMargin = rightMargin;
/*     */   }
/*     */ 
/*     */   public int getBottomMargin() {
/*  74 */     return this.bottomMargin;
/*     */   }
/*     */ 
/*     */   public void setBottomMargin(int bottomMargin) {
/*  78 */     this.bottomMargin = bottomMargin;
/*     */   }
/*     */ 
/*     */   public int getPaperWidth() {
/*  82 */     return this.paperWidth;
/*     */   }
/*     */ 
/*     */   public void setPaperWidth(int paperWidth) {
/*  86 */     this.paperWidth = paperWidth;
/*     */   }
/*     */ 
/*     */   public int getPaperHeight() {
/*  90 */     return this.paperHeight;
/*     */   }
/*     */ 
/*     */   public void setPaperHeight(int paperHeight) {
/*  94 */     this.paperHeight = paperHeight;
/*     */   }
/*     */ 
/*     */   public int getPrintAreaWidth() {
/*  98 */     return this.printAreaWidth;
/*     */   }
/*     */ 
/*     */   public void setPrintAreaWidth(int printAreaWidth) {
/* 102 */     this.printAreaWidth = printAreaWidth;
/*     */   }
/*     */ 
/*     */   public int getPrintAreaHeight() {
/* 106 */     return this.printAreaHeight;
/*     */   }
/*     */ 
/*     */   public void setPrintAreaHeight(int printAreaHeight) {
/* 110 */     this.printAreaHeight = printAreaHeight;
/*     */   }
/*     */ 
/*     */   public OrientationEnum getOrientation() {
/* 114 */     return this.orientation;
/*     */   }
/*     */ 
/*     */   public void setOrientation(OrientationEnum orientation) {
/* 118 */     this.orientation = orientation;
/*     */   }
/*     */ 
/*     */   public float getScaleX() {
/* 122 */     return this.scaleX;
/*     */   }
/*     */ 
/*     */   public void setScaleX(float scaleX) {
/* 126 */     this.scaleX = scaleX;
/*     */   }
/*     */ 
/*     */   public float getScaleY() {
/* 130 */     return this.scaleY;
/*     */   }
/*     */ 
/*     */   public void setScaleY(float scaleY) {
/* 134 */     this.scaleY = scaleY;
/*     */   }
/*     */ 
/*     */   public int getPrintAreaX() {
/* 138 */     return this.printAreaX;
/*     */   }
/*     */ 
/*     */   public void setPrintAreaX(int printAreaX) {
/* 142 */     this.printAreaX = printAreaX;
/*     */   }
/*     */ 
/*     */   public int getPrintAreaY() {
/* 146 */     return this.printAreaY;
/*     */   }
/*     */ 
/*     */   public void setPrintAreaY(int printAreaY) {
/* 150 */     this.printAreaY = printAreaY;
/*     */   }
/*     */ 
/*     */   public void setPageX(int pageX) {
/* 154 */     this.pageX = pageX;
/*     */   }
/*     */ 
/*     */   public int getPageX() {
/* 158 */     return this.pageX;
/*     */   }
/*     */ 
/*     */   public void setPageY(int pageY) {
/* 162 */     this.pageY = pageY;
/*     */   }
/*     */ 
/*     */   public int getPageY() {
/* 166 */     return this.pageY;
/*     */   }
/*     */ 
/*     */   public void setColumnCount(int columnCount) {
/* 170 */     this.columnCount = columnCount;
/*     */   }
/*     */   public int getColumnCount() {
/* 173 */     return this.columnCount;
/*     */   }
/*     */   public List<PrintPage> getPages() {
/* 176 */     return this.pages;
/*     */   }
/*     */ 
/*     */   public int getPageSize() {
/* 180 */     return this.pages == null ? 0 : this.pages.size();
/*     */   }
/*     */ 
/*     */   public void addPage(PrintPage page) {
/* 184 */     if (this.pages == null) {
/* 185 */       synchronized (this) {
/* 186 */         this.pages = new ArrayList();
/*     */       }
/*     */     }
/* 189 */     this.pages.add(page);
/*     */   }
/*     */ }

/* Location:           X:\repository\com\yss\sofa\cml\cml-api\1.1.0\cml-api-1.1.0.jar
 * Qualified Name:     com.yss.sofa.cml.print.PrintDocument
 * JD-Core Version:    0.6.0
 */